package ynu.edu.Feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import javax.xml.crypto.Data;

@FeignClient(name = "Provider")
public interface ProviderClient {

    @GetMapping("/data/{id}")
    String getData(@PathVariable("id") String id);

    @PostMapping("/data")
    String createData(@RequestBody Data data);

    @PutMapping("/data/{id}")
    String updateData(@PathVariable("id") String id, @RequestBody Data data);

    @DeleteMapping("/data/{id}")
    String deleteData(@PathVariable("id") String id);
}
